It seems that PHPParser doesn't support the trait syntax (see http://php.net/trait)
1) In error list it says 'statement expected' on this minified source code:
---------------------- begin code --------------------
trait InputParamParser{
protected function foo(){
return true;
}
}
---------------------- end code --------------------
2) it says "'}' expected" on this source code:
---------------------- begin code --------------------
class RequestProcessor{
use InputParamParser;
}
---------------------- end code --------------------
I think in both cases it hase to write no error.
jEdit version 5.0.0
PHPParser 2.0.1
Gentoo linux
Submitted | enca - 2013-11-16 - 20:56:46z | Assigned | nobody |
---|---|---|---|
Priority | 5 | Category | None |
Status | Open | Group | None |
Resolution | None | Visibility | No |